<!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">                
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Représentants
                        <small>Control panel</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="<?=site_url()?>"><i class="fa fa-dashboard"></i> Accueil</a></li>
                        <li >Configuration</li>
                        <li class="active">Représentants</li>
                       
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                	<div class="row">
                		<div class="col-lg-12 col-xs-12">          					             		
                			<div class="box box-primary">
                				<div class="box-header">
                					<h4 class="box-title">Représentants</h4>
                				</div>              				
                				<div class="box-body">
                				<div class="col-lg-4">
                				<div class="list-group">
  									<span class="list-group-item list-group-item-info">
    								<i class="fa fa-list-alt"></i> List des utilisateurs
  									</span>
  									<?php if($users){?>
                						<?php foreach ($users as $u):?>
                						<form action="" method="post" role="form" id="form_add_<?=$u->id?>"><input type="hidden" name="id" value="<?=$u->id?>"><input type="hidden" name="type" value="1">
                						</form>
 									<span class="list-group-item"><?=$u->name?> <button type="button" class="btn btn-xs btn-primary pull-right" onclick="$('#form_add_<?=$u->id?>').submit()"><i class="fa fa-arrow-right" ></i></button></span>
									
                						<?php endforeach;?>
                						<?php }else{?>
                						il n'y a plus d'utilisateur disponible...
                						<?php }?>
										</div>
                					<ul>
                					</div>
                					<div class="col-lg-4">
                				<div class="list-group">
  									<span href="#" class="list-group-item list-group-item-success">
    								<i class="fa fa-list-alt"></i> List des représentants
  									</span>
  									<?php if($agents){?>
  									
                						<?php foreach ($agents as $a):?>
                						<form action="" method="post" role="form" id="form_remove_<?=$a->id?>"><input type="hidden" name="id" value="<?=$a->id?>"><input type="hidden" name="type" value="2">
                							</form>
 									<span  class="list-group-item"><?=$a->name?><button type="button" class="btn btn-xs btn-danger pull-right" onclick="$('#form_remove_<?=$a->id?>').submit()"><i class="fa fa-times"></i></button></span>
 								
									<?php endforeach;?>
                						<?php }else{?>
                						représentant...
                						<?php }?>
										</div>
                					<ul>
                					</div>
                					<div class="clearfix"></div>
                				</div>
                			</div>                		
                		</div>
                		</div>
                		
                	
                
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->